<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    @yield('info')
    <link rel="stylesheet" href="{{asset('resources/views/home/css/base.css')}}">
    <link rel="stylesheet" href="{{asset('resources/views/home/css/index.css')}}">
    <link rel="stylesheet" href="{{asset('resources/views/home/css/style.css')}}">
    <link rel="stylesheet" href="{{asset('resources/views/home/css/new.css')}}">
    <!--[if lt IE 9]>
    <script src="{{url('resources/views/home/js/modernizr.js')}}"></script>
    <![endif]-->
</head>
<body>
<header>
    <div id="logo"><a href="{{url('/')}}"></a></div>
    <nav class="topnav" id="topnav">
        @foreach($navs as $value)
            <a href="{{$value->nav_url}}"><span>{{$value->nav_name}}</span><span class="en">{{$value->nav_alias}}</span></a>
        @endforeach
    </nav>
</header>
@section('content')
    <h3>
        <p><span>最新文章</span></p>
    </h3>
    <ul class="rank">
        @foreach($new as $value)
            <li><a href="{{url('a/'.$value->article_id)}}" title="{{$value->article_title}}" target="_blank">{{$value->article_title}}</a></li>
        @endforeach
    </ul>
    <h3 class="ph">
        <p>点击<span>排行</span></p>
    </h3>
    <ul class="paih">
        @foreach($hottest as $value)
            <li><a href="{{url('a/'.$value->article_id)}}" title="{{$value->article_title}}" target="_blank">{{$value->article_title}}</a></li>
        @endforeach
    </ul>
@show
<footer>
    <p>{{Config::get('web.copyright')}} {{Config::get('web.web_count')}}</p>
</footer>
</body>
</html>
